package org.zcl.sqlserver.controller;

import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.zcl.sqlserver.entity.CreateForBooking;
import org.zcl.sqlserver.service.CouponService;

/**
 * .
 *
 * @author zhuchenglin
 * @since 2024/10/28 11:43
 */
@RestController
@RequestMapping("/coupon")
public class CouponController {

    @Autowired
    private CouponService couponService;

    @ApiOperation("创建卡券接口")
    @PostMapping("/createCoupon")
    public String createCoupon(@RequestBody CreateForBooking createForBooking) {
        return couponService.createCoupon(createForBooking);
    }
}
